Package com.cisco.pt.ipc.sim.impl
Class BluetoothDeviceImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.BluetoothDeviceImpl
- All Implemented Interfaces:
IPCData,BluetoothDevice
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected booleanprotected MACAddressprotected TetherMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetDeviceName(String deviceName) voidsetIsConnected(boolean isConnected) voidsetIsPaired(boolean isPaired) voidsetMacAddress(MACAddress macAddress) voidsetTetherMode(TetherMode tetherMode) Methods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVector
-
Field Details
-
deviceName
-
macAddress
-
isPaired
protected boolean isPaired -
isConnected
protected boolean isConnected -
tetherMode
-
-
Constructor Details
-
BluetoothDeviceImpl
public BluetoothDeviceImpl()
-
-
Method Details
-
getDeviceName
- Specified by:
getDeviceNamein interfaceBluetoothDevice- Returns:
- String Returns a String
-
setDeviceName
- Specified by:
setDeviceNamein interfaceBluetoothDevice- Parameters:
deviceName- Takes in a parameter of deviceName
-
getMacAddress
- Specified by:
getMacAddressin interfaceBluetoothDevice- Returns:
- MACAddress Returns a MACAddress
-
setMacAddress
- Specified by:
setMacAddressin interfaceBluetoothDevice- Parameters:
macAddress- Takes in a parameter of macAddress
-
getIsPaired
public boolean getIsPaired()- Specified by:
getIsPairedin interfaceBluetoothDevice- Returns:
- boolean Returns a boolean
-
setIsPaired
public void setIsPaired(boolean isPaired) - Specified by:
setIsPairedin interfaceBluetoothDevice- Parameters:
isPaired- Takes in a parameter of isPaired
-
getIsConnected
public boolean getIsConnected()- Specified by:
getIsConnectedin interfaceBluetoothDevice- Returns:
- boolean Returns a boolean
-
setIsConnected
public void setIsConnected(boolean isConnected) - Specified by:
setIsConnectedin interfaceBluetoothDevice- Parameters:
isConnected- Takes in a parameter of isConnected
-
getTetherMode
- Specified by:
getTetherModein interfaceBluetoothDevice- Returns:
- TetherMode Returns a TetherMode
-
setTetherMode
- Specified by:
setTetherModein interfaceBluetoothDevice- Parameters:
tetherMode- Takes in a parameter of tetherMode
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Specified by:
readin classIPCDataImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-